home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / filter_mapping < prev    next >
Text File  |  2001-04-06  |  998b  |  27 lines

  1. DEPRECATED
  2. SYNOPSIS
  3.         mapping filter_mapping(mapping, string func, string|object ob, ...)
  4.         mapping filter_mapping(mapping, closure cl, ...)
  5.  
  6. DESCRIPTION
  7.         ob->func() is called resp. cl applied to every element in the
  8.         mapping, with first argument being the key of the
  9.         element, and then the extra args that were given to
  10.         filter_mapping (these args must not be protected references like
  11.         &(i[0]). If the function returns true, the element is
  12.         element, and then the extra args that were given to
  13.         added to the result mapping. ob can also be a file_name of an
  14.         object.
  15.  
  16.         If <ob> is omitted, or neither a string nor an object, it
  17.         defaults to this_object().
  18.  
  19. HISTORY
  20.         In LDMud 3.2.6 renamed to filter_indices().
  21.         Since LDMud 3.2.9, not available if driver is compiled without
  22.           USE_DEPRECATED.
  23.  
  24. SEE ALSO
  25.         filter(E), map(E), map_indices(E), walk_mapping(E), member(E),
  26.         m_contains(E)
  27.